package com.han.http.client.paramter;

import java.net.InetSocketAddress;
import java.net.Proxy;

/**
 * @fileName: SocksProxy
 * @author: Han
 * @date: 2018/6/21 17:03
 * @dscription: SOCKS（V4 或 V5）代理
 */
public class SocksProxy extends Proxy {

    /**
     * 主机名
     */
    private String hostname;
    /**
     * 端口
     */
    private int port;

    public SocksProxy(String hostname, int port) {
        super(Type.SOCKS, new InetSocketAddress(hostname, port));
        this.hostname = hostname;
        this.port = port;
    }

    public String getHostname() {
        return hostname;
    }

    public int getPort() {
        return port;
    }
}
